<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2017/10/23
  Time: 23:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改商品</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/updateProductServlet">
    <h1 align="center">修改商品</h1>
    <table align="center">
        <tr>
            <td>商品ID:</td>
            <td><input readonly style="border: 0" type="text" name="pid" value="${product.pid}"></td><%--无边框 只读--%>
        </tr>
        <tr>
            <td>商品名称:</td>
            <td><input type="text" name="pname" value="${product.pname}"></td>
        </tr>
        <tr>
            <td>商品市场价格:</td>
            <td><input type="number" name="marketPrice" value="${product.marketPrice}"></td>
        </tr>
        <tr>
            <td>商品商场价格:</td>
            <td><input type="number" name="shopPrice" value="${product.shopPrice}"></td>
        </tr>
        <tr>
            <td>商品描述:</td>
            <td><textarea name="pdesc" style="height: 100px; width: 120%">${product.pdesc}</textarea></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="提交"></td>
            <td><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>
</html>
